#include <irrlicht.h>

using namespace irr;

class MyEventReceiver : public IEventReceiver
{
public:
	struct SMouseState
	{
		core::position2di Position;
		bool LeftButtonDown;
		SMouseState() : LeftButtonDown(false) { }
	} MouseState;

	virtual bool OnEvent(const SEvent& event);

	virtual bool IsKeyDown(EKEY_CODE keyCode) const;

	const SMouseState & GetMouseState(void) const{return MouseState;}

	MyEventReceiver();

private:
	bool KeyIsDown[KEY_KEY_CODES_COUNT];
};
